home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-09-30 | 3.3 KB | 75 lines | [TEXT/MPS ] |
- #
- # makefile for "myInstaCompOne.r", an example for InstaCompOne file and font compression
- #
- #
- # to build installer script :
- # 1) select "Build" from "Build" menu
- # 2) type script name "myInstaCompOne" ( note: ".r" is omitted )
- #
- # to build debug version of installer script :
- # 1) select "Build" from "Build" menu
- # 2) type script name "myInstaCompOne.debug" ( note: ".r" is omitted )
- #
- #
-
- # • script names
-
- # the installer script name
- scriptName = myInstaCompOne
- # the debug version installer script name
- debugScriptName = "{scriptName}.debug"
- # filename for ScriptCheck extension that will run when ScriptCheck does
- localScriptCheckExtName = {scriptName}.scx
-
- # • support directory names
-
- # directory where ScriptCheck MPW tool can be found
- ScriptCheckDir = :::Tools:Released:ScriptCheck 4.0.3:
- # directory where RIncludes can be found
- InstallerRIncDir = :::DeveloperInterfaces:RIncludes:
- # directory where the Installer Debugger can be found
- InstallerDebuggerDir = :::Tools:Released:Installer Debugger 4.0.3:
- # directory where the InstaCompOne stuff can be found
- InstaCompOneDir = :::Tools:Released:InstaCompOne 1.1:
-
- # • tool names
-
- # InstaCompOne compression tool
- compressTool = {InstaCompOneDir}InstaCompOneTool
-
- # Original ScriptCheck Extension
- ScriptCheckExtension = {InstaCompOneDir}InstaCompOneSCExt.rsrc
-
- # Fond Encoder tool
- fondTool = {InstaCompOneDir}FONDEncoderTool
-
- "{debugScriptName}" ƒ {scriptName}
- Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
- Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
-
- "{scriptName}" ƒƒ "{scriptName}.r" "{localScriptCheckExtName}" ":Tidbits:Installation Data"
- set theTime "'`date -d -s` 12:00:00 PM'"
- Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
- SetFile -a b -d {theTime} "{scriptName}"
- "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
- SetFile -m {theTime} "{scriptName}"
-
- # be sure that's there's a copy of the InstaCompOne ScriptCheck extension in current folder
- "{localScriptCheckExtName}" ƒ "{ScriptCheckExtension}"
- # copy and rename the original scriptcheck extension
- Duplicate -y "{ScriptCheckExtension}" "{localScriptCheckExtName}"
-
- ":Tidbits:Installation Data" ƒ ":Original Sources:Helvetica" ":Original Sources:Example File"
- "{compressTool}" ":Original Sources:Example File" -o ":Tidbits:Installation Data"
- "{compressTool}" ":Original Sources:Helvetica" -k sfnt=16033 -a part=200 -o ":Tidbits:Installation Data"
- "{compressTool}" ":Original Sources:Helvetica" -k sfnt=5336 -a part=201 -o ":Tidbits:Installation Data"
- "{compressTool}" ":Original Sources:Helvetica" -k NFNT=24110 -a part=202 -o ":Tidbits:Installation Data"
- "{compressTool}" ":Original Sources:Helvetica" -k NFNT=22271 -a part=203 -o ":Tidbits:Installation Data"
- "{compressTool}" ":Original Sources:Helvetica" -k NFNT=14739 -a part=204 -o ":Tidbits:Installation Data"
- "{compressTool}" ":Original Sources:Helvetica" -k NFNT=15203 -a part=205 -o ":Tidbits:Installation Data"
- "{compressTool}" ":Original Sources:Helvetica" -k NFNT=17245 -a part=206 -o ":Tidbits:Installation Data"
- "{compressTool}" ":Original Sources:Helvetica" -k NFNT=17892 -a part=207 -o ":Tidbits:Installation Data"
- # "{fondTool}" ":Original Sources:Helvetica" -o ":Tidbits:Installation Data"
- echo "include ∂":Original Sources:Helvetica∂" 'FOND' AS 'iFND';" | Rez -append -o ":Tidbits:Installation Data"
-
-